<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">



  
  
    
    
  <script src="/dxl/lib/pace/pace.min.js?v=1.0.2"></script>
  <link href="/dxl/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/dxl/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/dxl/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/dxl/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/dxl/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/dxl/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/dxl/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/dxl/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="面试题,">










<meta name="description" content="一、业务逻辑1、角色 123角色展示：简单的返回数据角色添加/编辑：使用了from表单   有无id角色删除：url 传参  2、菜单管理/权限管理 12345678910111213141516171819201、菜单管理：展示：一次性返回菜单列表以及所有权限和所有权限2、菜单添加/编辑：使用了from表单   有无id3、菜单的删除/权限删除：url 传参4、权限的添加/编辑：使用了from表">
<meta name="keywords" content="面试题">
<meta property="og:type" content="article">
<meta property="og:title" content="权限复习">
<meta property="og:url" content="http://yoursite.com/2019/09/20/【面试题】04-3权限模式 - 副本/index.html">
<meta property="og:site_name" content="我的快乐时光">
<meta property="og:description" content="一、业务逻辑1、角色 123角色展示：简单的返回数据角色添加/编辑：使用了from表单   有无id角色删除：url 传参  2、菜单管理/权限管理 12345678910111213141516171819201、菜单管理：展示：一次性返回菜单列表以及所有权限和所有权限2、菜单添加/编辑：使用了from表单   有无id3、菜单的删除/权限删除：url 传参4、权限的添加/编辑：使用了from表">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-09-20T12:08:23.563Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="权限复习">
<meta name="twitter:description" content="一、业务逻辑1、角色 123角色展示：简单的返回数据角色添加/编辑：使用了from表单   有无id角色删除：url 传参  2、菜单管理/权限管理 12345678910111213141516171819201、菜单管理：展示：一次性返回菜单列表以及所有权限和所有权限2、菜单添加/编辑：使用了from表单   有无id3、菜单的删除/权限删除：url 传参4、权限的添加/编辑：使用了from表">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/dxl/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2019/09/20/【面试题】04-3权限模式 - 副本/">





  <title>权限复习 | 我的快乐时光</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/dxl/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">我的快乐时光</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/dxl/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/dxl/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/dxl/2019/09/20/【面试题】04-3权限模式 - 副本/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content>
      <meta itemprop="description" content>
      <meta itemprop="image" content="/dxl/images/avatar.png">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="我的快乐时光">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">权限复习</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-09-20T20:05:12+08:00">
                2019-09-20
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/dxl/categories/面试题/" itemprop="url" rel="index">
                    <span itemprop="name">面试题</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/dxl/2019/09/20/【面试题】04-3权限模式 - 副本/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count valine-comment-count" data-xid="/dxl/2019/09/20/【面试题】04-3权限模式 - 副本/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="page-pv">本文总阅读量
            <span class="busuanzi-value" id="busuanzi_value_page_pv"></span>次
            </span>
          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="一、业务逻辑"><a href="#一、业务逻辑" class="headerlink" title="一、业务逻辑"></a>一、业务逻辑</h2><p>1、角色</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">角色展示：简单的返回数据</span><br><span class="line">角色添加/编辑：使用了from表单   有无id</span><br><span class="line">角色删除：url 传参</span><br></pre></td></tr></table></figure>

<p>2、菜单管理/权限管理</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="number">1</span>、菜单管理：</span><br><span class="line">展示：一次性返回菜单列表以及所有权限和所有权限</span><br><span class="line"><span class="number">2</span>、菜单添加/编辑：使用了<span class="keyword">from</span>表单   有无id</span><br><span class="line"><span class="number">3</span>、菜单的删除/权限删除：url 传参</span><br><span class="line"><span class="number">4</span>、权限的添加/编辑：使用了<span class="keyword">from</span>表单   有无id</span><br><span class="line"></span><br><span class="line"><span class="number">5</span>、权限的批量操作：</span><br><span class="line">    展示：</span><br><span class="line">      后端：</span><br><span class="line">      待添加：路由系统中有，数据库中没有（添加权限） <span class="comment">#集合的差集</span></span><br><span class="line">      待更新：数据库中和路由系统中都有（跟新权限）   <span class="comment">#集合的交集</span></span><br><span class="line">      待删除：数据库中有，路由系统中没有（添加了一个路由系统中没有的群限，就需要删除） <span class="comment">#集合的差集</span></span><br><span class="line">	  前端：</span><br><span class="line">      	循环数据</span><br><span class="line">		下来菜单：</span><br><span class="line">    修改：</span><br><span class="line">    	数据的校验、字段的校验、全局钩子。</span><br><span class="line">技术点：</span><br><span class="line">	FormSet = modelformset_factory(models.Permission, MultiPermissionForm, extra=<span class="number">0</span>)</span><br><span class="line">	AddFormSet = formset_factory(MultiPermissionForm, extra=<span class="number">0</span>)</span><br></pre></td></tr></table></figure>

<p>3、权限的展示</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">待添加：路由系统中有，数据库中没有（添加权限）</span><br><span class="line">待更新：数据库中和路由系统中都有（跟新权限）</span><br><span class="line">待删除：数据库中有，路由系统中没有（添加了一个路由系统中没有的群限，就需要删除）</span><br><span class="line">技术点：命名空间、命名空间路由、路由的获取。</span><br><span class="line">技术难点：</span><br><span class="line">	指定app里面的权限不加入权限系统</span><br><span class="line">	使用的技术点事formset_facrury</span><br></pre></td></tr></table></figure>

<p>4、权限的批量操作</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">修改权限的名称、url、别名、所属菜单</span><br><span class="line">使用了modelformset_factory  formset_factory</span><br><span class="line">批量添加和创建通过post_type 区分</span><br><span class="line">返回的是三个列表</span><br></pre></td></tr></table></figure>

<p>5、权限注入</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="number">1</span>、获取权限  从数据库读取</span><br><span class="line"><span class="number">2</span>、设计数据表结构</span><br><span class="line"><span class="number">3</span>、将权限写入session中</span><br><span class="line">技术栈： session</span><br><span class="line"><span class="string">"""</span></span><br><span class="line"><span class="string">权限字典：放置所有权限，用于验证</span></span><br><span class="line"><span class="string">菜单字典：放置二级菜单，用于菜单展示</span></span><br><span class="line"><span class="string">"""</span></span><br></pre></td></tr></table></figure>

<p>6、权限验证</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">1、白名单的验证：在配置文件中写了一些可以免除验证的url  </span><br><span class="line">2、是否登录成功验证  islong</span><br><span class="line">3、权限的判断  使用的是正则</span><br><span class="line">技术点：pathinfo  session 使用get</span><br></pre></td></tr></table></figure>

<p>7、路由的获取</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">1、获取项目路由的（）</span><br><span class="line">import_string(settings.ROOT_URLCONF)</span><br><span class="line">2、循环项目路由的到app路由</span><br><span class="line">3、循环APP路由到到每一个url  获取url item.name  item.name</span><br><span class="line">增加的功能</span><br><span class="line">用户、角色、目标、操作、许可权</span><br></pre></td></tr></table></figure>

<p>8、权限的分配</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">第一步：</span><br><span class="line">	前段传输过来的数据post /role 给用户分配角色</span><br><span class="line">	前段传输过来的数据post /permission  给角色分配权限</span><br><span class="line">第二步：</span><br><span class="line">	判断下部要重点展示的数据 rid 展现所勾选的角色有哪些权限</span><br><span class="line">						 uid没有rid 展示的是用户有哪些角色、角色有哪些权限</span><br><span class="line">第四部：数据结构的拼接</span><br><span class="line">第二步：</span><br><span class="line">    用户的展示</span><br><span class="line">    角色展示</span><br><span class="line">     权限的展示</span><br></pre></td></tr></table></figure>

<h2 id="二、表结构设计"><a href="#二、表结构设计" class="headerlink" title="二、表结构设计"></a>二、表结构设计</h2><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">permission_dict </span><br><span class="line">&#123;<span class="string">'web:customer'</span>: &#123;<span class="string">'url'</span>: <span class="string">'/customer/list/'</span>, <span class="string">'id'</span>: <span class="number">1</span>, <span class="string">'pid'</span>: <span class="literal">None</span>, <span class="string">'pname'</span>: <span class="literal">None</span>, <span class="string">'title'</span>: <span class="string">'客户列表'</span>&#125;, </span><br><span class="line"> <span class="string">'web:customer_add'</span>: &#123;<span class="string">'url'</span>: <span class="string">'/customer/add/'</span>, <span class="string">'id'</span>: <span class="number">2</span>, <span class="string">'pid'</span>: <span class="number">1</span>, <span class="string">'pname'</span>: <span class="string">'web:customer'</span>, <span class="string">'title'</span>: <span class="string">'添加客户'</span>&#125;, <span class="string">'&#125;</span></span><br><span class="line"><span class="string">menu_dict </span></span><br><span class="line"><span class="string"> &#123;1: &#123;'</span>title<span class="string">': '</span>信息管理<span class="string">', '</span>icon<span class="string">': '</span>fa-address-book-o<span class="string">', '</span>weight<span class="string">': 100, '</span>children<span class="string">': [&#123;'</span>title<span class="string">': '</span>客户列表<span class="string">', '</span>url<span class="string">': '</span>/customer/list/<span class="string">', '</span>id<span class="string">': 1, '</span>pid<span class="string">': None&#125;]&#125;, </span></span><br><span class="line"><span class="string">  2: &#123;'</span>title<span class="string">': '</span>财务管理<span class="string">', '</span>icon<span class="string">': '</span>fa-clipboard<span class="string">', '</span>weight<span class="string">': 50, '</span>children<span class="string">': [&#123;'</span>title<span class="string">': '</span>缴费列表<span class="string">', '</span>url<span class="string">': '</span>/payment/list/<span class="string">', '</span>id<span class="string">': 5, '</span>pid<span class="string">': None&#125;]&#125;, &#125;</span></span><br></pre></td></tr></table></figure>


      
    </div>
    
    
    

    

    

    
      <div>
        <ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者：</strong>
    
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="http://yoursite.com/2019/09/20/【面试题】04-3权限模式 - 副本/" title="权限复习">http://yoursite.com/2019/09/20/【面试题】04-3权限模式 - 副本/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>
    本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="external nofollow" target="_blank">CC BY-NC-SA 3.0</a> 许可协议。转载请注明出处！
  </li>
</ul>

      </div>
    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/dxl/tags/面试题/" rel="tag"># 面试题</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/dxl/2019/09/20/【面试题】04-2智能玩具开发 - 副本/" rel="next" title="智能玩具项目复习">
                <i class="fa fa-chevron-left"></i> 智能玩具项目复习
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/dxl/2019/09/20/【爬虫11】空气质量数据的爬取 /" rel="prev" title="中国空气质量在线监测平台加密数据爬取">
                中国空气质量在线监测平台加密数据爬取 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
    </div>
  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/dxl/images/avatar.png" alt>
            
              <p class="site-author-name" itemprop="name"></p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/dxl/archives">
              
                  <span class="site-state-item-count">43</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/dxl/categories/index.html">
                  <span class="site-state-item-count">6</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/dxl/tags/index.html">
                  <span class="site-state-item-count">6</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          

          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-inline">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-sign-out"></i>
                我的友链
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="tencent://message/?Menu=yes&uin=1258517737&Site=QQ%E6%9E%81%E5%AE%A2&Service=300&sigT=45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45/" title="申请坑位" target="_blank">申请坑位</a>
                  </li>
                
              </ul>
            </div>
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#一、业务逻辑"><span class="nav-number">1.</span> <span class="nav-text">一、业务逻辑</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#二、表结构设计"><span class="nav-number">2.</span> <span class="nav-text">二、表结构设计</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
            <span id="scrollpercent"><span>0</span>%</span>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-hand-peace-o"></i>
  </span>
  <span class="author" itemprop="copyrightHolder"></span>

  
</div>









        
<div class="busuanzi-count">
  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      本站访客数
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      人次
    </span>
  

  
    <span class="site-pv">
      本站总访问量
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      次
    </span>
  
</div>








        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/dxl/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/dxl/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/dxl/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/dxl/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/dxl/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/dxl/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/dxl/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/dxl/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/dxl/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/dxl/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/dxl/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/dxl/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/dxl/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  










  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
  
  <script type="text/javascript">
    var GUEST = ['nick','mail','link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item=>{
      return GUEST.indexOf(item)>-1;
    });
    new Valine({
        el: '#comments' ,
        verify: false,
        notify: false,
        appId: '13B0JGDuA6ttduN8AQaR8CzF-gzGzoHsz',
        appKey: 'I13r9r5mVgq4jQYpYy6V4gW3',
        placeholder: '欢迎大佬指点~~~',
        avatar:'mm',
        guest_info:guest,
        pageSize:'10' || 10,
    });
  </script>



  





  

  

  

  
  

  

  

  

</body>
</html>
